package com.lhh.userservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lhh.springcommon.entity.History;
import com.lhh.springcommon.entity.vo.VideoVO;
import com.lhh.springcommon.utils.PageQuery;
import org.springframework.stereotype.Service;

/**
 * @author 李厚航
 * @date 2025-03-01 22:02
 */
public interface UserHistoryService {

    /**
     * 分页查询观看记录
     * @param page
     * @param pageSize
     * @param uid
     * @return
     */
    Page<VideoVO> queryPageHistory(Integer page,Integer pageSize,Integer uid);

    /**
     * 添加观看记录
     * @param history
     * @return
     */
    Boolean addHistory(History history);

    /**
     * 删除观看记录
     * @param history
     * @return
     */
    Boolean deleteHistory(History history);

    /**
     * 判断是否观看过
     * @param uid
     * @param vid
     * @return
     */
    Boolean isHistory(Integer uid,Integer vid);
}
